<template>
  <div class="userItem">
    <el-avatar :size="50" :src="avatar"></el-avatar>
    <div class="name">{{name}}</div>
  </div>

</template>

<script>
export default {
  name: "userListItem",
  props:{
    avatar:{
      type:String,
      default:""
    },
    name:{
      type:String,
      default:''
    }
  }
}
</script>

<style scoped>
.userItem{
  width: 70px;
  padding: 10px;
  float: left;
}
.userItem .name{
  text-align: center;
  overflow: hidden;
  width: 50px;
  font-size: 12px;
  height: 16px;
;
}
</style>
